<!doctype html>
<html lang="zh">
<head>
	<meta charset="utf-8" />
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title><?php echo $brandData['seo_title']; ?></title>
	<meta name="keywords" content="<?php echo str_replace(' ', ',', $brandData['seo_keyword']); ?>" />
	<meta name="description" content="<?php echo $brandData['seo_description']; ?>" />

	<link href="<?php echo $view['staticCss']; ?>/club/<?php echo $view['cssMainVer']; ?>/comm.css?<?php echo $view['cssVer']; ?>" rel="stylesheet" type="text/css" />
	<link href="<?php echo $view['staticCss']; ?>/club/<?php echo $view['cssMainVer']; ?>/list.css?<?php echo $view['cssVer']; ?>" rel="stylesheet" type="text/css" />
	<!-- 只允许引入两个js文件 -->
	<script src="<?php echo $view['staticJs']; ?>/jquery.js?<?php echo $view['jsVer']; ?>" type="text/javascript"></script>
	<script src="<?php echo $view['staticJs']; ?>/core2.js?<?php echo $view['jsVer']; ?>" type="text/javascript"></script>
</head>

<body>
	<?php include($view['basePath'].'/header.html');?>
	<!-- logo展示区 -->
	<div class="wrap">
    	<div class="onsale_brand" id="J_brandLogos">
			<div class="onsale_brand_show clearfix">
				<div class="onsale_style onsale_logo" id="J_brandLogos_todayTitle">
				<?php 
					switch ($query['channelId']) {
						case 0 :
							$logoStr = '在售';
							break;
						case 1 :
							$logoStr = '女士';
							break;
						case 2 :
							$logoStr = '男士';
							break;
						case 3 :
							$logoStr = '儿童';
							break;
						case 4 :
							$logoStr = '居家';
							break;
					}
					echo $logoStr . '品牌';
				?>
					<em class="icon_a"></em>
				</div>
				<div id="J_brandLogos_today"></div>
			</div>			
			<div id="J_brandLogos_arrow" class="onsale_icon_show">更多品牌</div>
            <div class="onsale_brand_hidden clearfix" id="J_brandLogos_hotSell">
				<div class="onsale_logo onsale_style_a onsale_style <?php echo $query['channelId'] ? 'onsale_style_font' : ''?>"><?php echo $query['channelId'] ? '<span class="block_a">'.$logoStr.'</span>' : ''; ?><span class="block_b">热销品牌</span><em class="icon_a"></em></div>
			</div>
        </div>
		
		<!-- 品牌flash展示区 -->
        <div class="pro_banner" id="J_brand_banner">
			<div class="pro_banner_fla">
				<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="690" height="210">
					<param name="movie" value="<?php echo $brandData['list_img']; ?>"/>
					<param name="quality" value="high"/>
					<param name="wmode" value="Opaque"/>
					<embed src="<?php echo $brandData['list_img']; ?>" wmode="Opaque" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="690" height="210"></embed>
				</object>
			</div>
			<div class="pro_banner_info">
				<div class="pro_banner_logo" id="J_brand_logo">
					<img class="lazy" src="<?php echo $brandData['story_logo']; ?>" width="160" height="78" alt="<?php echo $brandData['seo_title']; ?>">
					<h1><?php echo $brandData['name']; ?></h1>
					<div class="pro_banner_dis"><?php echo $brandData['discount']; ?></div>
					
				</div>
				<div class="pro_banner_title" id="J_brand_title">
					<p><strong><?php echo $brandData['name']; ?></strong><br><?php echo $brandData['story']; ?></p>
				</div>
				<p><a class="pro_banner_story" href="/story.php?channelId=<?php echo $query['channelId']?>&brandId=<?php echo $brandData['id']?>" target="_blank">品牌介绍</a></p>
				<div class="pro_banner_time"><span><font class="light_red" id="J_brand_countDownDay">0</font>天<font class="light_red" id="J_brand_countDownHour">00</font>时<font class="light_red" id="J_brand_countDownMin">00</font>分<font class="light_red" id="J_brand_countDownSec">00</font>秒</span></div>
			</div>
        </div>
		<div class="pro_choose" id="J_fileter_outFrame">
			<div id="J_fileter_frame">
				<div class="pro_search">
					<div class="pro_sortbarAll">
						<label>分类：</label>
						<ul>
						<?php if (!empty($categoryList)){
								  foreach ($categoryList as $cat) { ?>
							<li>
								<a href="/show-<?php echo $query['channelId']?>-<?php echo $query['brandId'];?>-<?php echo $cat['id'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-1.html" class="<?php echo $query['categoryId'] == $cat['id'] ? 'pro_selected' : '';?>"><?php echo $cat['name'];?>(<?php echo $cat['total'];?>)</a>
							</li>
						<?php 	  }
							  }
						 ?>
						</ul>
					</div>
					<div class="pro_sortbarSize hidden">
						<label>尺码：</label>
						<ul>
						<?php if ($query['categoryId'] == 0){ ?>
							<li>请先在上方选择分类</li>
						<?php }
							  else if (!empty($categoryList[$query['categoryId']]['size'])) { ?>
							<li><a href="/show-<?php echo $query['channelId']?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-0-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-1.html" class="<?php echo $query['sizeId'] ? '' : 'pro_selected'; ?>">不限</a></li>
						<?php 	  foreach ($categoryList[$query['categoryId']]['size'] as $size) {
						?>
							<li><a class="<?php echo $size['id'] == $query['sizeId'] ? 'pro_selected' : ''; ?>" href="/show-<?php echo $query['channelId']?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $size['id']?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-1.html"><?php echo $size['name'];?></a></li>
						<?php 	  }
							  } ?>
						</ul>
					</div>
					<div class="pro_block hidden"></div>
                    <!--第一次访问的操作提示-->
                    <div class="guide_select hidden" id="J_guide_select">
                      <p class="txt">可根据您的喜好，快速筛选商品。</p>
                      <p><span>我知道了</span></p>
                    </div>
				</div>
				<div class="pro_pickBar">
					<div class="pro_stockOnly"><a href="" id="J_fileter_hasStock" target="_self">只显示有货商品</a></div>
					<div class="pro_order fl">
						<a id="J_fileter_discount" class="btn_discount" target="_self" href="">折扣</a>
						<a id="J_fileter_price" class="btn_price" target="_self" href="">价格</a>
					</div>
				<?php if (empty($allMerchandiseList['total'])) { ?>
					<!-- 页头页码区 -->
					<div class="page page_special">
						<span class="page_total">共<?php echo $merchandiseList['total']; ?>条</span>
						<?php if (($query['page'] - 1) < 4) { 
								for ($i = 1;$i < $query['page'];$i++) {
						  ?>
								<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $i;?>.html"><?php echo $i; ?></a>
						<?php 	} 
							}
							else { ?>
								<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-1.html">1</a>
								<span class="page_dots">...</span>
								<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']-2;?>.html"><?php echo $query['page']-2;?></a>
								<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']-1;?>.html"><?php echo $query['page']-1;?></a>
					  <?php } ?>
						<span class="page_select"><?php echo $query['page']; ?></span>
					  <?php 
					  		if ($merchandiseList['pageCount'] - $query['page'] >= 4) {
					  ?>
								<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']+1;?>.html"><?php echo $query['page']+1;?></a>
								<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']+2;?>.html"><?php echo $query['page']+2;?></a>
								<span class="page_dots">...</span>
								<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $merchandiseList['pageCount'];?>.html"><?php echo $merchandiseList['pageCount'];?></a>	
					  <?php	}
						  	elseif ($merchandiseList['pageCount'] != $query['page']) {
								for ($i = $query['page'] + 1;$i <= $merchandiseList['pageCount'];$i++) {
					  ?>
								<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $i; ?>.html"><?php echo $i; ?></a>
						  <?php }
						  	} ?>
					</div>
				<?php } ?>
				</div>
				<div class="pro_pick_guid hidden" id="J_filter_popFrame">
					<span class="pro_pick_btn pro_pick_btn_more" id="J_filter_popBtn"></span>
				</div>
			</div>
		</div>
			<?php 
			if (!empty($merchandiseList['total'])) {
				$ids = array();
			?>
			 
		<?php if (!empty($allMerchandiseList['total'])) { ?>
		<!-- SKU少时筛选结果区 -->
		<div class="pro_list clearfix">
		<?php 	foreach($merchandiseList['items'] as $items) { 
			array_push($ids, $items['id']);?>
			<dl class="J_pro_items" id="J_pro_<?php echo $items['id'];?>" data-hover="dl_hover">
	            <dt class="pro_list_pic">
					<a href="/detail-<?php echo $query['channelId'];?>-<?php echo $query['brandId']; ?>-<?php echo $items['id'];?>.html" target="_blank">
						<img class="lazy J_first_pic" width="235" height="297" alt="<?php echo $items['name'];?>" src="<?php echo $view['staticImg']; ?>/club/vip_loading.gif" data-original="<?php echo $items['list_img'];?>" />
						<img class="hidden" width="235" height="297" src="" data-load="0" />
						<div class="pro_list_info J_size_area"></div>
					</a>
					<span class="sold_tag soldout_tag" id="J_soldout_<?php echo $items['id'];?>"></span>
				</dt>
	            <dd class="pro_list_tit"><a href="/detail-<?php echo $query['channelId'];?>-<?php echo $query['brandId']; ?>-<?php echo $items['id'];?>.html" target="_blank"><?php echo $brandData['pre_name'].' '.$items['name'];?></a></dd>
				<dd class="pro_list_data">
					<span class="light_red"><em>&yen;<?php echo $items['sell_price']; ?></em>(<?php echo $items['discount']; ?>)</span>
					<del class="gray">&yen;<?php echo $items['market_price']; ?></del>
				</dd>
	        </dl>
		<?php	}
				$merchandiseList = $allMerchandiseList;
				$query = $query2;
		?>
		</div>

		<div class="pro_list_more">
			<span class="pro_list_all">全部商品</span>
			
			<!-- 页头页码区（SKU少的情况） -->
			<div class="page">
	            <div class="fr">
	            <span class="page_total">共<?php echo $merchandiseList['total']; ?>条</span>
				<?php if (($query['page'] - 1) < 4) { 
						for ($i = 1;$i < $query['page'];$i++) {
				  ?>
				<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $i;?>.html"><?php echo $i; ?></a>
				<?php 	} 
					}
					else { ?>
				<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-1.html">1</a>
				<span class="page_dots">...</span>
				<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']-2;?>.html"><?php echo $query['page']-2;?></a>
				<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']-1;?>.html"><?php echo $query['page']-1;?></a>
			  <?php } ?>
				<span class="page_select"><?php echo $query['page']; ?></span>
			  <?php 
			  		if ($merchandiseList['pageCount'] - $query['page'] >= 4) {
			  ?>
				<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']+1;?>.html"><?php echo $query['page']+1;?></a>
				<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']+2;?>.html"><?php echo $query['page']+2;?></a>
				<span class="page_dots">...</span>
				<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $merchandiseList['pageCount'];?>.html"><?php echo $merchandiseList['pageCount'];?></a>	
			  <?php	}
				  	elseif ($merchandiseList['pageCount'] != $query['page']) {
						for ($i = $query['page'] + 1;$i <= $merchandiseList['pageCount'];$i++) {
			  ?>
				<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $i; ?>.html"><?php echo $i; ?></a>
				  <?php }
				  	} ?>
	            </div>
	        </div>
			<div class="pro_block"></div>
		</div>
		<?php } ?>
		<!-- 所有商品区 -->
        <div class="pro_list clearfix">
        	<?php
				for ($i = 0; $i < 40; $i++) {
					if (isset($merchandiseList['items'][$i])) {
						$merchandise = $merchandiseList['items'][$i];
						array_push($ids, $merchandise['id']);

						if ($merchandise['sell_price'] == $merchandise['market_price']) {
							$merchandise['discount'] = '一口价';
						}
					}
					else {
						break;
					}
			?>
            <dl class="J_pro_items" id="J_pro_<?php echo $merchandise['id'];?>" data-hover="dl_hover">
                <dt class="pro_list_pic">
					<a href="/detail-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $merchandise['id'];?>.html" target="_blank">
						<img class="lazy J_first_pic" width="235" height="297" alt="<?php echo $merchandise['name'];?>" src="<?php echo $view['staticImg']; ?>/club/vip_loading.gif" data-original="<?php echo $merchandise['list_img'];?>" />
						<img class="hidden" width="235" height="297" src="" data-load="0" />
						<div class="pro_list_info J_size_area"></div>
					</a>
					<span class="sold_tag soldout_tag" id="J_soldout_<?php echo $merchandise['id'];?>"></span>
				</dt>
                <dd class="pro_list_tit"><a href="/detail-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $merchandise['id'];?>.html" target="_blank"><?php echo $brandData['pre_name'].' '.$merchandise['name'];?></a></dd>
				<dd class="pro_list_data">
					<span class="light_red"><em>&yen;<?php echo $merchandise['sell_price']; ?></em>(<?php echo $merchandise['discount']; ?>)</span>
					<?php 
						if ($merchandise['sell_price'] != $merchandise['market_price']) {
					?>
							<del class="gray">&yen;<?php echo $merchandise['market_price']; ?></del>
					<?php
						}
					?>
				</dd>
            </dl>
			<?php 
					if (($i % 4) == 3) {
						echo '</div><div class="pro_list clearfix">';
					}
				}
			?>
        </div>
		<!-- 滚动异步加载 -->
		<div id="J_wrap_pro_add"></div>
		<!-- 页尾页码区 -->
		<div class="page">
            <div class="fr">
            <span class="page_total">共<?php echo $merchandiseList['total']; ?>条</span>
			<?php if (($query['page'] - 1) < 4) { 
					for ($i = 1;$i < $query['page'];$i++) {
			  ?>
			<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $i;?>.html"><?php echo $i; ?></a>
			<?php 	} 
				}
				else { ?>
			<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-1.html">1</a>
			<span class="page_dots">...</span>
			<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']-2;?>.html"><?php echo $query['page']-2;?></a>
			<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']-1;?>.html"><?php echo $query['page']-1;?></a>
		  <?php } ?>
			<span class="page_select"><?php echo $query['page']; ?></span>
		  <?php 
		  		if ($merchandiseList['pageCount'] - $query['page'] >= 4) {
		  ?>
			<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']+1;?>.html"><?php echo $query['page']+1;?></a>
			<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $query['page']+2;?>.html"><?php echo $query['page']+2;?></a>
			<span class="page_dots">...</span>
			<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $merchandiseList['pageCount'];?>.html"><?php echo $merchandiseList['pageCount'];?></a>	
		  <?php	}
			  	elseif ($merchandiseList['pageCount'] != $query['page']) {
					for ($i = $query['page'] + 1;$i <= $merchandiseList['pageCount'];$i++) {
		  ?>
			<a target="_self" href="/show-<?php echo $query['channelId'];?>-<?php echo $query['brandId'];?>-<?php echo $query['categoryId'];?>-<?php echo $query['sizeId'];?>-<?php echo $query['hasStock'];?>-<?php echo $query['orderId'];?>-<?php echo $i; ?>.html"><?php echo $i; ?></a>
			  <?php }
			  	} ?>
            </div>
        </div>
		<?php 
		}
		else {
		?>
        <!--查找不到-->
        <div class="pro_list clearfix">
            <div class="pro_find_none">很抱歉，没有找到符合条件的商品</div>
        </div>
		<?php } ?>
    </div>
	
	<script type="text/html" id="J_wrap_pro_template">
		<dl class="J_pro_items" id="J_pro_{$id}" data-hover="dl_hover">
	        <dt class="pro_list_pic">
				<a href="{$link}" target="_blank">
					<img class="lazy J_first_pic" width="235" height="297" alt="{$name}" src="<?php echo $view['staticImg']; ?>/club/vip_loading.gif" data-original="{$img}" />
					<img class="hidden" width="235" height="297" src="" data-load="0" />
					<div class="pro_list_info J_size_area"></div>
				</a>
				<span class="sold_tag soldout_tag" id="J_soldout_{$id}"></span>
			</dt>
	        <dd class="pro_list_tit"><a href="{$link}" target="_blank">{$name}</a></dd>
			<dd class="pro_list_data">
				<span class="light_red"><em>&yen;{$sell_price}</em>{$discount}</span>
				<del class="gray equal_{$equal}">&yen;{$market_price}</del>
			</dd>
	    </dl>
	</script>
	<script type="text/html" id="J_wrap_brand_template">
		{#items}
		<div class="onsale_pic" data-hover="onsale_pic_hover">
			<a href="/show-<?php echo $query['channelId'];?>-{$id}-0-0-0-0-1.html">
				<img class="lazy" src="{$logo}" alt="{$name}" height="48" width="98" />
			</a>
			<span class="onsale_tit">{$name}<br />{$discount}<i class="onsale_tit_tag"></i></span>
		</div>
		{#/items}
	</script>

	<script type="text/javascript">
		var _goods = {};
		var S_warehouse = wareHouse = '<?php echo $query['warehouse']?>';
		var brand = {
			id : <?php echo $brandData['id']; ?>,
			name : "<?php echo $brandData['name']; ?>",
			discount : '<?php echo $brandData['discount']; ?>',
			story : "<?php echo str_replace(array("\r\n", "\n", "\r", "\t"), '', $brandData['story']); ?>",
			end_time : <?php echo $brandData['end_time']; ?>,
			logo : "<?php echo $brandData['logo']; ?>",
			state : <?php echo $query['state']; ?>
		};

		var omniture = {
			brandName : brand.name,
			isTodayBrand : <?php if($brandData['start_time'] >= strtotime('today') && $brandData['start_time'] < strtotime('tomorrow')) {echo 1;} else {echo 0;} ?>,
			brandId : brand.id
		}
		
		var pg = {
			page : <?php echo $query['page']; ?>,
			channelId : <?php echo $query['channelId']; ?>,
			brandId : <?php echo $query['brandId']; ?>,
			categoryId : <?php echo $query['categoryId']; ?>,
			sizeId : <?php echo $query['sizeId']; ?>,
			hasStock : <?php echo $query['hasStock']; ?>,
			orderId : <?php echo $query['orderId']; ?>
		};
		
		var logoTitle = {};
		switch (pg.channelId){
			case 0 :
				logoTitle = {close : '在售品牌', open_today : '今日上线'};
				break;
			case 1 :
				logoTitle = {close : '女士品牌', open_today : '<span class="block_a">女士</span><span class="block_b">今日上线</span>'};
				break;
			case 2 :
				logoTitle = {close : '男士品牌', open_today : '<span class="block_a">男士</span><span class="block_b">今日上线</span>'};
				break;
			case 3 :
				logoTitle = {close : '儿童品牌', open_today : '<span class="block_a">儿童</span><span class="block_b">今日上线</span>'};
				break;	
			case 4 :
				logoTitle = {close : '居家品牌', open_today : '<span class="block_a">居家</span><span class="block_b">今日上线</span>'};
				break;	
		}
		
		$.Loader
			.advScript(  {
				name : 'club-list',
				url : '<?php echo $view['staticJs']; ?>/club/<?php echo $view['jsMainVer']; ?>/list.js?<?php echo $view['jsVer']; ?>'
			}, {
				name : 'club-head',
				url : '<?php echo $view['staticJs']; ?>/club/<?php echo $view['jsMainVer']; ?>/header.js?<?php echo $view['jsVer']; ?>'
			}, {
				name : 'lazyload',
				url : '<?php echo $view['staticJs']; ?>/plugins/lazyload.js?<?php echo $view['jsVer']; ?>'
			}, {
				name : 'lazyloadAfter',
				def : function () { $("img.lazy").lazyload({ threshold : 200 }); },
				requires : ['lazyload']
			}, {
				name : 'inf',
				url : '<?php echo $view['staticJs']; ?>/club/<?php echo $view['jsMainVer']; ?>/inf.js?<?php echo $view['jsVer']; ?>'
			}, {
				name : 'inf-2',
				def : function () { 
					$(window).load(function () {
						comm();
						list();
					});
				},
				requires : ['inf']
			} );
		
		//滚动加载数据
		var merchandise = [
			<?php
				for ($i = 40; $i < count($merchandiseList['items']); $i++) {
					$merchandise = $merchandiseList['items'][$i];
					array_push($ids, $merchandise['id']);
	
					if($merchandise['sell_price'] == $merchandise['market_price']){
						$equal='0';
						$merchandise['discount'] = '一口价';
					}
					else{
						$equal='1';
					}
			?>
			{"id" : <?php echo $merchandise['id']; ?>, "img" : "<?php echo $merchandise['list_img']; ?>", "link" : "/detail-<?php echo $query['channelId']; ?>-<?php echo $query['brandId']; ?>-<?php echo $merchandise['id']; ?>.html", "discount" : '(<?php echo $merchandise['discount']; ?>)', "sell_price" : "<?php echo $merchandise['sell_price']; ?>", "name" : "<?php echo $brandData['pre_name']; ?>&nbsp;<?php echo str_replace('"', "'", $merchandise['name']); ?>", "market_price" : "<?php echo $merchandise['market_price']; ?>", "equal" : "<?php echo $equal; ?>"},
			<?php } ?>
			{}
		];
		merchandise.pop();
		
		var S_ids = '<?php echo empty($ids) ? '' : implode(',', $ids); ?>';

		var inf_omniture = ["唯品特卖会:"+ logoTitle.close +":<?php echo $brandData['name']; ?>", '唯品特卖会', logoTitle.close,'商品列表页面', 1,'<?php echo $brandData['name']; ?>',"<?php echo $brandData['id']; ?>"];

	</script>

<?php include($view['basePath'].'/footer.html');?>

</body>
</html>